package com.cvte.boe.media.utils;


public class Encoding {
    public static final int ASCII = 0x8;
    public static final int BIG5 = 0x2;
    public static final int EUC_JP = 0x7;
    public static final int EUC_KR = 0x5;
    public static final int GB2312 = 0x0;
    public static final int GBK = 0x1;
    public static final int SIMP = 0x0;
    public static final int SJIS = 0x6;
    public static final int TOTALT = 0xa;
    public static final int TRAD = 0x1;
    public static final int UNICODE = 0x4;
    public static final int UNKNOWN = 0x9;
    public static final int UTF8 = 0x3;
    static String[] javaname = new String[0xa];
    
    public Encoding() {
        javaname[0x0] = "GB2312";
        javaname[0x1] = "GBK";
        javaname[0x2] = "BIG5";
        javaname[0x3] = "UTF-8";
        javaname[0x4] = "UTF-16";
        javaname[0x5] = "EUC-KR";
        javaname[0x6] = "SJIS";
        javaname[0x7] = "EUC_JP";
        javaname[0x8] = "ASCII";
        javaname[0x9] = "ISO8859-1";
    }
    
    public static String toEncoding(int type) {
        return javaname[type];
    }
}
